//
//  PhotoSelectionViewCell.h
//  XPhoto
//
//  Created by baboy on 2019/2/22.
//  Copyright © 2019 baboy. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "PhotoAsset.h"

NS_ASSUME_NONNULL_BEGIN
@protocol PhotoSelectionViewCellDelegate;

@interface PhotoSelectionViewCell : UICollectionViewCell
@property(nonatomic, strong)IBOutlet UIImageView* imageView;
@property(nonatomic, strong)IBOutlet UIButton* checkbox;
@property(nonatomic, strong)IBOutlet UIView* maskView;
@property(nonatomic, strong)IBOutlet UILabel* durationLabel;
@property(nonatomic, strong)id<PhotoSelectionViewCellDelegate> delegate;
@property(nonatomic, strong)PhotoAsset *photoAsset;

- (IBAction)clickCheckbox:(UIButton*)checkbox;
- (IBAction)clickPhoto:(UIButton*)checkbox;
@end

@protocol PhotoSelectionViewCellDelegate <NSObject>
@required
- (void)photoSelectionViewCellDidClickCheckbox:(PhotoSelectionViewCell*)cell;
@optional
- (void)photoSelectionViewCellDidClickPhoto:(PhotoSelectionViewCell*)cell;
@end
NS_ASSUME_NONNULL_END
